package com.unknow.first.app.version.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.unknow.first.app.version.entity.AppVersion;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface AppVersionMapper extends BaseMapper<AppVersion> {

    int insertSelective(AppVersion record);

    int updateByPrimaryKeySelective(AppVersion record);

    /**
     * 获取最新版本
     *
     * @param type app类型
     * @return
     */
    List<AppVersion> selectNewVersion(@Param("type") int type,@Param("appName") String appName);
}